<ul class="button">
    <li><a href="javascript:void(0);" class="add">添加相册</a></li>
</ul>
<table class="records">
    <thead>
        <tr>
            <th>ID</th>
            <th>名称</th>
            <th>描述</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
    </thead>
    <tfoot><tr><td colspan="5"></td></tr></tfoot>
    <tbody><tr><td colspan="5">loading...</td></tr></tbody>
</table>

<script id="form-template" type="text/x-jquery-tmpl">
    <form action="/backend/album/${action}" method="post">
        <input type="hidden" name="id" value="${id}"/>
        <div class="form-row">
            <label for="name">名称</label>
            <input type="text" name="name" value="${name}"/>
        </div>
        <div class="form-row">
            <label for="description">简介</label>
            <textarea name="description" cols="50" rows="5">${description}</textarea>
        </div>
        <div class="form-button">
            <input type="submit" name="submit" value="提交"/>
        </div>
    </form>
</script>

<script id="list-template" type="text/x-jquery-tmpl">
    <tr>
        <td><input type="checkbox" name="id[]" value="${id}"/></td>
        <td><b>${name}</b></td>
        <td>${description}</td>
        <td>${created_at}</td>
        <td>
            <a href="javascript:void(0);" class="edit">修改</a>
            <a href="javascript:void(0);" class="delete">删除</a>
        </td>
    </tr>
</script>